shortcuts: Avoid excessive property notification
authorMatthias Clasen <mclasen@redhat.com>
Thu, 19 Nov 2015 23:05:35 +0000 (18:05 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 20 Nov 2015 05:13:20 +0000 (00:13 -0500)
Notifying needlessly causes unnecessary work, and causes our
testsuite to fail.

gtk/gtkshortcutsshortcut.c

index 2885391d2f98ffa4702a999ffa4733585aba2014..8cc10d29d9c79cce862d18e91a837c5fb27eaaed 100644 (file)
@@ -137,6 +137,8 @@ gtk_shortcuts_shortcut_set_direction (GtkShortcutsShortcut *self,
   self->direction = direction;
 
   update_visible (self);
+
+  g_object_notify (G_OBJECT (self), "direction");
 }
 
 static void
@@ -299,7 +301,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
                        P_("Direction"),
                        GTK_TYPE_TEXT_DIRECTION,
                        GTK_TEXT_DIR_NONE,
-                       (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+                       (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY));
 
   g_object_class_install_properties (object_class, LAST_PROP, properties);
 }